package com.zjq.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString

public class Books {
    private int bookId;
    private String bookName;
    private int bookCounts;
    private String detail;
    private String bookImg;
    private BigDecimal price;
    private int bookkindId;
    private BookKind bookKind;
    private int type;
    private int authorId;
    private Author author;
    private List<Comments> comments;

    public List<Comments> getComments() {
        return comments;
    }

    public int getBookId() {
        return bookId;
    }
}
